<!DOCTYPE html>
<html lang="zh">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>v-pre & v-cloak & v-once</title>
  <script src="../assets/js/vue.js"></script>
</head>

<body>
  <h1>v-pre & v-cloak & v-once</h1>
  <hr>
  <div id="app">
    <div v-pre>v-pre：{{message}}</div>
    <div v-cloak>v-cloak：渲染完成后，才显示</div>
    <div v-once>v-once：{{message}}</div>
    <div>
      <input type="text" v-model="message">
    </div>
    <div>{{message}}</div>
  </div>
  <script type="text/javascript">
    var app = new Vue({
      el: '#app',
      data: {
        message: 'hello world'
      }
    })
  </script>
</body>

</html>